<!-- 此处配置的是在webapp里的静态资源 -->
<#assign webRootPath = "${request.contextPath}" viewRoot = "/static/view" >
<link rel="shortcut icon" href="${webRootPath}${viewRoot}/base/image/favicon.ico">
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html; charset=utf8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- jquery开始 -->
<script type="text/javascript" src="${webRootPath}${viewRoot}/base/javascript/jquery/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="${webRootPath}${viewRoot}/base/javascript/jquery/jquery-jrumble.js"></script>
<script type="text/javascript" src="${webRootPath}${viewRoot}/base/javascript/jquery/jquery.cookie.js"></script>
<script type="text/javascript" src="${webRootPath}${viewRoot}/base/javascript/jquery/jquery.json.min.js"></script>
<script type="text/javascript" src="${webRootPath}${viewRoot}/base/javascript/jquery/jquery.tipsy.js"></script>
<!-- easyUI -->
<link rel="stylesheet" type="text/css" href="${webRootPath}${viewRoot}/base/javascript/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="${webRootPath}${viewRoot}/base/javascript/easyui/themes/icon.css">
<script type="text/javascript" src="${webRootPath}${viewRoot}/base/javascript/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${webRootPath}${viewRoot}/base/javascript/easyui/locale/easyui-lang-${Session['locale']}.js"></script>
<!-- bootstrap -->
<link rel="stylesheet" href="${webRootPath}${viewRoot}/base/javascript/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="${webRootPath}${viewRoot}/base/javascript/bootstrap/css/bootstrap-theme.min.css">
<script type="text/javascript" src="${webRootPath}${viewRoot}/base/javascript/bootstrap/js/bootstrap.min.js"></script>
<!-- 自定义类 -->
<link rel="stylesheet" type="text/css" href="${webRootPath}${viewRoot}/base/style/default.css">
<script type="text/javascript" src="${webRootPath}${viewRoot}/base/javascript/public.js"></script>
<script>
	var pageContext = {};     //上下文
	pageContext["webRootPath"] = '${request.contextPath}';
	pageContext["webViewRoot"] = '${viewRoot}';
	pageContext["localeMessages"]={};
	

	/*
	其中属性值为message的key值，value为参数值，如果没有参数则数组为[]
	{
		"pubic.test.msg":["测试1","测试2"],
		"pubic.test.msg":[]
		}

	加载国际化信息，如果页面中需加载相关国际化的信息，请调用这个类.
	*/	
	pageContext.loadLocaleMessages=function(keys){
		$.ajax({
			type:"post",
			dataType:'json',
			contentType : "application/json",
			url : pageContext["webRootPath"] + '/viewer/setting/localeMessages.do',
			data : JSON.stringify(keys),
			success : function(data) {
				$.extend(pageContext["localeMessages"], data);
				if(typeof afterLoadLocaleMessages == "function"){
					afterLoadLocaleMessages();
				}
			}
		});
	}

	//获取国际化参数
	pageContext.getMessage=function(key){
		return pageContext["localeMessages"][key];
	}
	
	$(document).ready(function() {
		$("body").css({
			"background-image" : "url(\"" + pageContext["webRootPath"]+pageContext["webViewRoot"]+ "/base/image/background.jpg\")",
			"background-size": "cover",
			"width": "100%",
			"overflow-x":"hidden",
			"overflow-y":"hidden"
			});
		var initMessages={
				"pubic.test.msg":["测试1","测试2"],
				"pubic.message.warm":[]
		};
		pageContext.loadLocaleMessages(initMessages);
		yyl.setLablesByMessages();
	});
	
</script>
